package com.iflytek.ci.qams.dao;

import java.util.Map;

import com.iflytek.ci.qams.domain.Comment;
import com.iflytek.framework.mybatis.extra.MyBatisDao;
import com.iflytek.framework.pagination.PaginationCriteria;
import com.iflytek.framework.pagination.PaginationResult;

/**
 * <p>
 * 反馈回复管理数据库访问接口.
 * </p>
 * 
 * @author poplar.mdzhang
 * @version 1.0 2012-10-26 4:27 PM
 * @since JDK 1.5
 */
@MyBatisDao
public interface CommentDao {
	
	/**
	 * get a comment by comment_id
	 * 
	 * @param comment
	 * @return commentID
	 */
	Comment getById(long comment_id);
	
	/**
	 * add a new comment
	 * 
	 * @param comment
	 * @return commentID
	 */
	int addIssue_comment(Comment issue_comment);

	/**
	 * update a comment
	 * 
	 * @param comment
	 */
	int updateIssue_comment(Comment issue_comment);

	/**
	 * delete one or more comment
	 * 
	 * @param ids
	 */
	int removeIssue_comment(long[] ids);

	/**
	 * get a comment
	 * 
	 * @param map
	 */
	Comment getIssue_comment(Map<String, Object> map);
	
	/**
	 * pagination get comments
	 * 
	 * @param criteria
	 * @param issue_id
	 * @return PaginationResult
	 */
	PaginationResult<Comment> pageIssue_comment(PaginationCriteria criteria,long issue_id);

	
}
